package com.hoe.tsb.web;

import com.hoe.tsb.fraft.CurrentNode;
import com.hoe.tsb.fraft.Node;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 节点配置类
 * </p>
 *
 * @author hoe
 * @since 2022/12/15
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "com.hoe.tbs")
public class NodeProperties {

    private CurrentNode current;

    private List<Node> peers;

}
